home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
COMMODOR
/
STKTRACK.ARC
/
STOCK TRACKER
(
.txt
)
Wrap
Commodore BASIC
|
2000-06-30
|
3KB
|
127 lines
5 REM * PROGRAM BY RICKIE SCOTT
6 REM * SAVE A REVISED COPY FIRST TIME THROUGH
10 POKE53281,0:POKE53280,0:PRINT"[158]"
20 DIM A$(30),B$(30,11),D$(11):F=0
30 FORI=1TO25
40 READ A$(I),B$(I,0)
50 NEXTI
60 OPEN15,8,15,"I0"
70 OPEN2,8,2,"0:STOCK FILE,S,R"
75 PRINT"[147]DATA SET UP IN PROGRESS":PRINT" PLEASE WAIT!!"
80 INPUT#15,E,E$,E1$,E2$
90 IF E=62 THEN CLOSE2:GOTO 331
100 FORJ=1TO25
110 FORI=1TO10
120 INPUT#2,B$(J,I)
130 NEXT I:NEXTJ
135 CLOSE2
140 PRINT"[147] "
142 PRINT" MENU "
145 PRINT" "
150 PRINT" 1. REVIEW 4 WEEKS BACK"
160 PRINT" 2. REVIEW ALL WEEKS
170 [153]" 3. ADD NEW QUOTES"
180 [153]" 4. SAMPLE RUN ON A $1000"
182 [153]" 5. CHANGE A PRICE"
190 [153]" 6. QUIT"
195 [153]" CHOICE"
200 CH$[178]"":[133] CH$
210 [145][197](CH$)[137] 350,500,250,700,1100,245
220 [137]140
245 [153]"LOADD0 YOU WANT TO SAVE A REVISED COPY (Y/N)"
246 [161]A$:[139]A$[178]""[167]246
247 [139]A$[178]"Y"[167]332
248 [160]15:[160]2:[153]"LOAD THE END":[128]
250 [143] * ADD QUOTES
260 [153]"LOAD"
270 [129]I[178]1[164]25
275 [153] A$(I),B$(I,0)
280 [129]J[178]10[164]1[169][171]1
290 B$(I,J[170]1)[178]B$(I,J)
300 [130]J
310 [133] B$(I,1)
320 [130] I
330 [137]1100
331 [143] * SAVE NEW FILE
332 [159] 2,8,2,"@0:STOCK FILE,S,W"
333 [153]"SAVING NEW STOCK FILE"
334 [129]J[178]1[164]25
336 [129]L[178]1[164]10
338 [139]B$(J,L)[178]""[167]B$(J,L)[178]"\"
340 [152]2,B$(J,L)
342 [130]L:[130]J
344 [160]2:F[178]1
346 [137] 140
350 [143] * REVEIW 4 WEEKS
360 [129]I[178]1[164]25
365 [153] A$(I),B$(I,0)
370 [129]J[178]1[164]4
380 [153] B$(I,J),
400 [130]J:[153]
410 K[178]K[170]1:[139]K[177]5[167]K[178]0
415 [139]K[179]5[167]460
420 [153]"HIT F1 KEY TO RETURN TO MENU"
425 [153]"HIT ANY KEY TO CONTINUE"
430 [161] A$:[139]A$[178]""[167]430
435 [139]A$[178]"INPUT"[167]140
437 [139]F[178]1[167]470
440 [139] B$(I,0)[178]"END"[167] F[178]1:[137]430
460 [130] I
470 F[178]0:[129]T[178]1[164]1000:[161]A$:[139]A$[178]""[167][130]T
480 [137]140
500 [143] * REVIEW ALL WEEKS
510 [129]I[178]1[164]25
520 [153]A$(I),B$(I,0)
525 [129]J[178]1[164]10
530 [153]B$(I,J),
540 [130]J:[153]
550 K[178]K[170]1:[139]K[177]3[167]K[178]0:[137]570
560 [161]A$:[139]A$[178]""[167]560
570 [130] I
600 [137]140
700 [143] * SAMPLE PROFIT OR LOSS FOR 2 WEEKS
710 [153]"LOAD"
720 [153]"THIS WILL SHOW THE POSSIBLE PROFIT OR "
730 [153]"LOSS ON A STOCK PURCHASED ANY OF THE"
740 [153]"WEEKS ON RECORD.":S$[178]""
750 [153]"ENTER STOCK SYMBOL (? FOR LIST)":[133] S$
760 [139] S$[178]"?"[167][129]I[178]1[164]25:[153] A$(I),B$(I,0):[130]I:[137]750
770 [129]J[178]1[164]25:[139]S$[178]B$(J,0)[167]Z[178]J
775 [130]J
780 [139]Z[178]0[167]140
785 [153] A$(Z),B$(Z,0)
790 [129]J[178]1[164]10:[153]B$(Z,J),:[130] J:[153]
800 [133]"BUY WEEK";X
810 [133]"SELL WEEK";Y
820 B[178][197](B$(Z,X)):S[178][197](B$(Z,Y)):[139]B[178]0[167]B[178]1
830 BW[178](1000[173]B)
840 SW[178][181]((BW[172]S[171]1000)[172]100)[173]100:[153]"POSSIBLE PROFIT OR LOSS ON $1000"
845 [153] "IS $"SW
850 [153]""
900 [153]"HIT F1 TO RETURN TO MENU"
905 [161]A$:[139]A$[178]""[167]905
910 [139]A$[178]"INPUT"[167]140
920 [137]700
1000 [131] COMMODORE,CCT,V F CORP,VFC,VOLT INFO SCIENCE,VOLT
1010 [131] ZENITH RADIO CORP.,ZE,WESTERN STATES LIFE,WSTS,LINEAR CORP.,LINE
1020 [131] BUSCH,BUD,U.S. AIR,U,XEROX CORP.,XRX,LIN BROADCASTING,LINB
1030 [131] PAN AMERICAN AIRWAYS,PN,U.S. STEEL CORP.,X
1040 [131] PABST BREWWING CO.,PABT,PACIFIC GAS & ELE.,PCG
1050 [131] INTERNATIONAL TEL & TELAGRAPH,ITT,MOBIL CORP.,MBOT
1060 [131] HBO CORP.,HBOC,GULF OIL CORP.,GO,LILY (ELI) & CO.,LLY
1070 [131] AMERICAN TELEPHONE & TELEGRAPH,T,EXXON,XON,LIMITED STORES,LIMT
1080 [131] INTERNATIONAL BUSINES MACHINES,IBM,GOLD,GOLD,SILVER,SILVER,END,END
1100 [143] * CHANGE A PRICE
1110 [153]"LOADDO YOU NEED TO MAKE ANY CHANGES (Y/N)."
1120 [161]A$:[139]A$[178]""[167]1120
1130 [139]A$[178]"Y"[167]1150
1140 [137]140
1150 [153]"INPUT STOCK TO CHANGE"
1160 [133] CS$
1170 [129]I[178]1[164]26:[139]CS$[178]B$(I,0)[167]Z[178]I:[137]1200
1180 [130] I
1190 [153]"INVALID CHOICE":[129]T[178]1[164]900:[130]T:[137]140
1200 [153]""B$(Z,0),B$(Z,1)
1210 [133]"NEW PRICE";B$(Z,1)
1220 [137]140